package com.zretc.controller;

import com.zretc.config.FastDFSUtils;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import javax.servlet.http.HttpServletResponse;

@Controller
public class ImageShowController {

    @GetMapping("/download/")
    public void download(HttpServletResponse response,
                         String address){
        FastDFSUtils.download(response,address);
    }
}
